Skip to content

ci(release): remove unused latest commit lookup - #3239

Merged
Gavin Barron (gavinbarron) merged 1 commit into
mainfrom
gavinbarron-release-pipeline-failure
Nov 20, 2026
Merged

Gavin Barron (gavinbarron) merged 1 commit into
mainfrom
gavinbarron-release-pipeline-failure

Conversation

@gavinbarron

@gavinbarron Gavin Barron (gavinbarron) commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Changes proposed in this pull request

  • Remove the deploy job's unauthenticated lookup of the latest commit on main, which failed in production run 266750 after hitting GitHub's anonymous API rate limit.
  • Delete scripts/GetLatestCommitSHA.ps1; its LATEST_COMMIT_SHA output has no remaining consumers. Keep version extraction, ESRP publishing, and GitHub asset uploads unchanged; the GitHub release task already uses $(Build.SourceVersion).
  • Validation: git -c core.longpaths=true diff --check passed. PowerShell assertions confirmed the pipeline differs only by removal of the obsolete task; the tracked-file reference check found no stale references. The production deployment was not rerun.

Other links

Microsoft Reviewers: Open in CodeFlow

BEGIN_COMMIT_OVERRIDE
fix(ci): remove old breaking ci step
END_COMMIT_OVERRIDE

Remove the unused GitHub SHA lookup and script so anonymous API rate limits cannot block package deployment.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@gavinbarron
Gavin Barron (gavinbarron) requested a review from a team as a code owner November 20, 2026 22:24
Copilot AI balanced review requested due to automatic review settings November 20, 2026 22:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the removal of the unused release-pipeline commit lookup.

No open issues 🎉

What changed in this PR

Removes an unused commit lookup from the release pipeline, eliminating an unnecessary unauthenticated GitHub API request that caused deployment failures when rate-limited.

Changes:

  • Remove the deploy job’s latest-commit lookup task and its PowerShell script.
  • Leave version extraction, ESRP publishing, and GitHub asset uploads unchanged; release creation continues to use $(Build.SourceVersion).
File Description
scripts/​GetLatestCommitSHA.ps1 Delete the obsolete script that fetched and exported LATEST_COMMIT_SHA.
.azure-pipelines/​ci-build.yml Remove the deployment task that invoked the deleted script.

Review effort: Balanced

@gavinbarron
Gavin Barron (gavinbarron) merged commit 0890df5 into main Nov 20, 2026
7 checks passed
@gavinbarron
Gavin Barron (gavinbarron) deleted the gavinbarron-release-pipeline-failure branch November 20, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants